﻿#ifndef SETTINGOFCHARGETIME_H
#define SETTINGOFCHARGETIME_H

#include <QWidget>
#include "Global.h"

namespace Ui {
class SettingOfChargeTime;
}

class SettingOfChargeTime : public QWidget
{
    Q_OBJECT
    
public:
    CountDownTime* countdown[GUN_AMOUNT];
    QLabel* time;
    QLabel* signal;
    explicit SettingOfChargeTime(QWidget *parent = 0);
    ~SettingOfChargeTime();

signals:
    void StartCharging_RefreshChargeInfo(int focus_gun_);

public slots:
    void on_Keyboard_clicked();

private slots:
    void Device_Error_or_NotConnect(int GUN_NO);
    void setCountHide(int current);
    void countdownOver();
    void on_buttonOk_clicked();

    void on_buttonBack_clicked();

    void on_buttonCancelCharging_clicked();

private:
    void keyBoardConnect();
    void keyHandle(QPushButton* btn, QLineEdit* lineEdit);

    Ui::SettingOfChargeTime *ui;
};

#endif // SETTINGOFCHARGETIME_H
